<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.g-container,.g-main{
			width: 200px;
			height: 200px;
		}
		.g-container{
			background: red;
			position: fixed;
			z-index: 1;
		}
		.g-main{
			background: blue;
			position: absolute;
		/*	z-index: 2;*/
		}
	</style>
</head>
<body>

<div class='g-container'></div>
<div class='g-main'></div>

</body>
</html>